<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>案例3</title>
		<style type="text/css">
			span{
				color: red;
			}
		</style>
	</head>
	<body>
		<span>阻止右键菜单（阻止默认事件）</span>
	</body>
</html>
<script src="../js/jquery-3.5.1.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	$(function() {
		document.oncontextmenu = function() {
			return false;
		}
	})
</script>
